package com.plr.dump;

import java.util.LinkedHashMap;

import org.xml.sax.Attributes;

public class Robert {
	private String node;
	private final LinkedHashMap<String, String> attrMap = new LinkedHashMap<>();
	private boolean attrprinted = false;

	public String getNode() {
		return node;
	}

	public void setNode(String node) {
		this.node = node;
	}

	public LinkedHashMap<String, String> getAttr() {
		return attrMap;
	}

	public void setAttributes(Attributes attributes) {
		
		attrMap.clear();
		for (int i = 0; i < attributes.getLength(); i++) {
			attrMap.put(attributes.getLocalName(i), attributes.getValue(i));
		}
	}

	public boolean isAttrprinted() {
		return attrprinted;
	}

	public void setAttrprinted(boolean attrprinted) {
		this.attrprinted = attrprinted;
	}

	@Override
	public String toString() {
		return node;
	}
}
